package string_test;

public class StringCompare {
    public static void main(String[] args) {
////        String str1 = "abc";
////        String str2 = "Abc";
////        System.out.println(str1.compareTo(str2));
//        char[] ch = new char[]{'a','b','c'};
//        String str = new String(ch);
////        String str1 = ch.toString();
//        String str1 = new String(ch,1,2);
//        System.out.println(str);
//        System.out.println(str1);
        String str = "hello";
        char[] data = str.toCharArray();
        data[0] = 'H';
        System.out.println(str.charAt(1));
        System.out.println(str);
    }
}
